<%= render :partial => "shared/errors", :locals => {:obj => @message_rule} %>

  <div class="group">
    <%= f.label :target_column, "フィルタリング対象：", :class => "label label2" %>
    <%= f.select :target_column, MessageRule.target_columns, :class => "select" %>
  </div>

  <div class="group">
    <%= f.label :rule_type, "ルールタイプ：", :class => "label label2" %>
    <%= f.select :rule_type, MessageRule.rule_types, :class => "select" %>
  </div>

  <div class="group">
    <%= f.label :rule_value, "条件値：", :class => "label label2" %>
    <%= f.text_field :rule_value, :class => "text_field" %>
  </div>

  <div class="group">
    <%= f.label :message_folder_id, "振り分け先フォルダ名：", :class => "label label2" %>
    <%= f.select :message_folder_id, @user.message_folders.collect {|folder| [folder.name, folder.id]}, :class => "select" %>　
    <%= link_to "新規フォルダ作成", new_portal_message_folder_path %>
  </div>
